package com.starmark.sys.org.provider.dto;


import com.starmark.sys.org.api.dto.OrgElementDto;
import lombok.Data;

import java.io.Serializable;

/**
 * @description: 组织架构树
 * @author: starmark
 * @create: 2018-08-13 19:45
 **/
@Data
public class OrgTreeDto implements Serializable {

    private String id;

    /**
     * 名称
     */
    private String name;
    /**
     * 组织架构类型
     */
    private int orgType;



    /**
     * 备注
     */

    private String memo;


    public OrgTreeDto(){
        super();
    }
    public OrgTreeDto(OrgElementDto orgElementDto, int orgType) {
        this.id = orgElementDto.getId();
        this.name = orgElementDto.getName();
        this.orgType = orgType;

    }

    public OrgTreeDto(String id, String name, int orgType, String memo) {
        this.id = id;
        this.name = name;
        this.orgType = orgType;
        this.memo = memo;
    }

}
